ALMaSS  1.0
The Animal, Landscape and Man Simulation System
CfgStr Class Reference

String configurator entry class. More...

#include <configurator.h>

Inheritance diagram for CfgStr:

Public Member Functions

 CfgStr (const char *a_key, CfgSecureLevel a_level, const char *a_defval)
const char * value (void)
void set (char *a_newval)
virtual CfgType gettype (void)
- Public Member Functions inherited from CfgBase
 CfgBase (const char *a_key, CfgSecureLevel a_level)
virtual ~CfgBase (void)
const string getkey (void)
CfgSecureLevel getlevel (void)

Protected Attributes

string m_string
- Protected Attributes inherited from CfgBase
string m_key
CfgSecureLevel m_level
bool m_rangetest

Detailed Description

String configurator entry class.

Constructor & Destructor Documentation

◆ CfgStr()

CfgStr::CfgStr ( const char *  a_key,
CfgSecureLevel  a_level,
const char *  a_defval 
161  :CfgBase( a_key, a_level )
162 {
163  m_string = a_defval;
164 }
CfgBase(const char *a_key, CfgSecureLevel a_level)
Definition: configurator.cpp:73
string m_string
Definition: configurator.h:147

References m_string.

Member Function Documentation

◆ gettype()

virtual CfgType CfgStr::gettype ( void  )

Reimplemented from CfgBase.

154 { return CFG_STRING; }
Definition: configurator.h:56

References CFG_STRING.

◆ set()

void CfgStr::set ( char *  a_newval)
153 { m_string = a_newval; }

◆ value()

Member Data Documentation

◆ m_string

string CfgStr::m_string

Referenced by CfgStr().

The documentation for this class was generated from the following files: